const root_url = 'http://192.168.10.158:8000';
const serverip = 'http://192.168.10.158:8000';
const wsserver = 'ws://192.168.10.158:8000/chat';
App({
  onLaunch: function () {
    let that=this;
    wx.getUserInfo({
      success: res => {
        // console.log('getUserInfo',res)
        that.globalData.nick_name = res.userInfo.nickName;
        that.globalData.head_img_url = res.userInfo.avatarUrl;
      }
    })
  },
  onShow: function () {
    
  },
  onHide: function () {

  },
  globalData: {
    // hasLogin: false,
    // userid: '',
    // sessionkey: '',
    // nickname: '',
    // photo: '',
    // serverip: serverip,
    // wsserver: wsserver,
    // root_url: root_url
  },
});

